import {getRequest, postRequest} from '../request'

const dmPublic = {
  /** 图形验证码-获取验证码 */
  getCaptcha: () => postRequest('/api/Captcha/get'),
  /** 发送短信验证码 */
  sendSmsCode: params => getRequest('/api/sms/send', params),
  /** 获取协议相关链接地址 */
  getProtocol: params => postRequest('/api/Risk.Protocol/getProtocol', params),
  /** 下单前预览协议 */
  previewProtocol: params => postRequest('/api/risk.protocol/preview_protocol', params),
  /** 生成订单后查询协议 */
  queryProtocol: params => postRequest('/api/risk.protocol/query_protocol', params),
  /** 获取物流公司名称和编码 */
  getShipperCode: () => postRequest('/api/Express/getshipperCode'),
  /** 获取配置信息 */
  getConfigInfo: params => getRequest('/api/information', params)
}

export default dmPublic